package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.VSumApplicationResultMapper;
import com.ruoyi.system.domain.VSumApplicationResult;
import com.ruoyi.system.service.IVSumApplicationResultService;
import com.ruoyi.common.core.text.Convert;

/**
 * 考生成绩汇总Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-15
 */
@Service
public class VSumApplicationResultServiceImpl implements IVSumApplicationResultService 
{
    @Autowired
    private VSumApplicationResultMapper vSumApplicationResultMapper;

    /**
     * 查询考生成绩汇总
     * 
     * @param name 考生成绩汇总主键
     * @return 考生成绩汇总
     */
    @Override
    public VSumApplicationResult selectVSumApplicationResultByName(String name)
    {
        return vSumApplicationResultMapper.selectVSumApplicationResultByName(name);
    }

    /**
     * 查询考生成绩汇总列表
     * 
     * @param vSumApplicationResult 考生成绩汇总
     * @return 考生成绩汇总
     */
    @Override
    public List<VSumApplicationResult> selectVSumApplicationResultList(VSumApplicationResult vSumApplicationResult)
    {
        return vSumApplicationResultMapper.selectVSumApplicationResultList(vSumApplicationResult);
    }

    /**
     * 新增考生成绩汇总
     * 
     * @param vSumApplicationResult 考生成绩汇总
     * @return 结果
     */
    @Override
    public int insertVSumApplicationResult(VSumApplicationResult vSumApplicationResult)
    {
        return vSumApplicationResultMapper.insertVSumApplicationResult(vSumApplicationResult);
    }

    /**
     * 修改考生成绩汇总
     * 
     * @param vSumApplicationResult 考生成绩汇总
     * @return 结果
     */
    @Override
    public int updateVSumApplicationResult(VSumApplicationResult vSumApplicationResult)
    {
        return vSumApplicationResultMapper.updateVSumApplicationResult(vSumApplicationResult);
    }

    /**
     * 批量删除考生成绩汇总
     * 
     * @param names 需要删除的考生成绩汇总主键
     * @return 结果
     */
    @Override
    public int deleteVSumApplicationResultByNames(String names)
    {
        return vSumApplicationResultMapper.deleteVSumApplicationResultByNames(Convert.toStrArray(names));
    }

    /**
     * 删除考生成绩汇总信息
     * 
     * @param name 考生成绩汇总主键
     * @return 结果
     */
    @Override
    public int deleteVSumApplicationResultByName(String name)
    {
        return vSumApplicationResultMapper.deleteVSumApplicationResultByName(name);
    }
}
